<template>
  <el-container>
    <el-header>账单管理</el-header>
    <el-container>
      <el-aside width="200px">
        <!--        <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">-->
        <!--          <el-radio-button :label="false">展开</el-radio-button>-->
        <!--          <el-radio-button :label="true">收起</el-radio-button>-->
        <!--        </el-radio-group>-->
        <el-menu default-active="/account" class="el-menu-vertical-demo" router :collapse="isCollapse">
          <el-menu-item index="/account">账单列表</el-menu-item>

          <el-submenu index="1">
            <template slot="title">
              <span slot="title">收支明细</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/stream">流水记录</el-menu-item>
              <el-menu-item index="/gain">每月理财</el-menu-item>
            </el-menu-item-group>
          </el-submenu>

          <el-submenu index="2">
            <template slot="title">
              <span slot="title">账单分析</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/budget">预算结余</el-menu-item>
              <el-menu-item index="/budget">收支预览</el-menu-item>
            </el-menu-item-group>
          </el-submenu>

          <el-submenu index="3">
            <template slot="title">
              <span slot="title">管理设置</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/budget">消费分类</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: 'Home',
  components: {},
  data() {
    return {
      isCollapse: false
    }
  }
}
</script>

<style lang="less" scoped>
.home-container {
  height: 100%;
}

.el-header {
  background-color: #373d41;
  display: flex;
  justify-content: space-between;
  padding-left: 0;
  align-items: center;
  color: #fff;

  div .el-button {
    margin-left: 20px;
  }

  > div.logo {
    margin-left: 10px;
    display: flex;
    align-items: center;
    font-size: 20px;

    span {
      margin-left: 15px;
    }
  }
}

.el-aside {
  background-color: #333744;

  .el-menu {
    border-right: none;
  }
}

.toggle-button {
  background-color: #4a5064;
  height: 20px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

.el-container {
  height: 100%;
}
</style>
